/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package de.hsmannheim.pepa.patientenportal.apanwep.model;

import java.io.Serializable;

import java.util.ArrayList;
import java.util.List;

/**
 * This class is used by SOAP remote services, specifically {@link de.hsmannheim.pepa.patientenportal.apanwep.service.http.contactServiceSoap}.
 *
 * @author Cedric Nana
 * @see de.hsmannheim.pepa.patientenportal.apanwep.service.http.contactServiceSoap
 * @generated
 */
public class contactSoap implements Serializable {
	public static contactSoap toSoapModel(contact model) {
		contactSoap soapModel = new contactSoap();

		soapModel.setMessage_id(model.getMessage_id());
		soapModel.setUser_id(model.getUser_id());
		soapModel.setDatetime(model.getDatetime());

		return soapModel;
	}

	public static contactSoap[] toSoapModels(contact[] models) {
		contactSoap[] soapModels = new contactSoap[models.length];

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModel(models[i]);
		}

		return soapModels;
	}

	public static contactSoap[][] toSoapModels(contact[][] models) {
		contactSoap[][] soapModels = null;

		if (models.length > 0) {
			soapModels = new contactSoap[models.length][models[0].length];
		}
		else {
			soapModels = new contactSoap[0][0];
		}

		for (int i = 0; i < models.length; i++) {
			soapModels[i] = toSoapModels(models[i]);
		}

		return soapModels;
	}

	public static contactSoap[] toSoapModels(List<contact> models) {
		List<contactSoap> soapModels = new ArrayList<contactSoap>(models.size());

		for (contact model : models) {
			soapModels.add(toSoapModel(model));
		}

		return soapModels.toArray(new contactSoap[soapModels.size()]);
	}

	public contactSoap() {
	}

	public long getPrimaryKey() {
		return _message_id;
	}

	public void setPrimaryKey(long pk) {
		setMessage_id(pk);
	}

	public long getMessage_id() {
		return _message_id;
	}

	public void setMessage_id(long message_id) {
		_message_id = message_id;
	}

	public long getUser_id() {
		return _user_id;
	}

	public void setUser_id(long user_id) {
		_user_id = user_id;
	}

	public String getDatetime() {
		return _datetime;
	}

	public void setDatetime(String datetime) {
		_datetime = datetime;
	}

	private long _message_id;
	private long _user_id;
	private String _datetime;
}